V301 — Active-account access + native Import/Export reconnect (V300 base)
========================================================================

Your intended account law is:
  IF logged account != characters/<account name> -> ACCESS DENIED
  IF logged account == characters/<account name> -> READ / IMPORT / EXPORT

V300 already enforces that exact account identity check. This is a permission
and routing rule inside the BG2 account system, NOT a Windows folder ACL.
Stock Baldur's Gate II: EE still reads and exports to the flat
Documents/Baldur's Gate II - Enhanced Edition/characters/ directory; a
permission rule alone cannot redirect the BG2 engine to nested directories.
To preserve stock menus, V301 continues to expose ONLY the authenticated
account's files using temporary same-volume NTFS hardlinks. The real CHR/BIO
files remain in characters/<accountname>/ and are not copied or backed up.

NEW IN V301:
  RECONNECT_LOGGED_ACCOUNT_CHARACTERS.bat

Use this if native Import shows no character files, or Export appears to write
in the wrong folder. It runs WHILE BG2 is OPEN and your account is logged in:
  1. It reads the existing current-account selector (never logs you in).
  2. It requires a matching, active account identity for that folder.
  3. It refuses to move/delete unexpected CHR/BIO files under characters/.
  4. It verifies the configured BG2 Documents profile matches the installed
     router, so a second BG2 installation cannot be accidentally chosen.
  5. It verifies a live background router heartbeat to avoid leaving character
     files accessible after logout; if safely stopped, it attempts to restart
     the already installed background router without running SETUP.
  6. It reconnects the permitted account's hardlinks and lists which names
     are actually available in BG2's native characters/ view.
  7. Other registered accounts are not connected to the native view.

It does NOT touch account registration/passwords, rewrite account flags,
change CHR/BIO ownership, repair mismatched names, create backups, or delete
any character files. When a safety check fails it stops and explains why.

INSTALL:
  A. Close all BG2 and InfinityLoader windows to install V301.
  B. Extract the ZIP into the V300 All Editors folder.
  C. Run SETUP_IN_GAME_ACCOUNTS.bat ONCE; select the F:\Games\BG2 FULL EDIT
     CREATOR installation (if that is the game you're playing) AND the
     Documents\Baldur's Gate II - Enhanced Edition profile containing Baldur.lua.
  D. Launch BG2, log into Drakhysys or Kronas, and wait a few seconds.
  E. If native Import is still empty, keep BG2 open and run
     RECONNECT_LOGGED_ACCOUNT_CHARACTERS.bat. Select the SAME Documents profile.
  F. Run CHECK_ACCOUNT_CHARACTER_ACCESS.bat while logged in for details.

If Reconnect stops due to an invalid account flag, wrong Documents profile,
uncleared foreign lease, stale router heartbeat, or unassigned root character,
do NOT reset account passwords or move files blindly; send the report instead.

NOTE ABOUT SCREENSHOT:
The normal 'Exporter le personnage' screen has a separate filename entry at
the top. If that field is empty, 'TERMINER' can stay grey until you enter/select
a valid export name. Seeing KRONAS in the existing-names list is not proof
that a new export has been saved to the intended account folder.

CAVEAT: Windows native BG2/InfinityLoader behavior has NOT been verified here.
Python unit tests verify account isolation, native hardlink behavior and safe
failure, but cannot guarantee the actual Windows game installs use that profile.
